package com.szrt.day20170414.ch03;



import java.util.List;

import org.junit.Test;

public class StudentTest {
	
	@Test
	public void testName() throws Exception {
		Student zengshaohua = new Student();
		zengshaohua.setName("曾少华");
		zengshaohua.setAge(30);
		zengshaohua.setCounter(1);
		
		
		Student jiamengju = new Student();
		jiamengju.setName("贾梦菊");
		jiamengju.setAge(23);
		jiamengju.setCounter(2);
		
		Student zhouchi = new Student();
		zhouchi.setName("周驰");
		zhouchi.setAge(27);
		zhouchi.setCounter(3);
		
		// 三个宝宝 一起问  我们班上有多少个人? 3
		System.out.println(zengshaohua.getCounter());
		System.out.println(jiamengju.getCounter());
		System.out.println(zhouchi.getCounter());
		
		
		
		
	}
	
	@Test
	public void staticTest() throws Exception {
		System.out.println(Student.COUNTRY);
		System.out.println(Student.add(10, 20));
		
		
		//不推荐使用=在工作中禁止使用
		Student student = new Student();
		System.out.println(student.COUNTRY);
		System.out.println(student.add(10, 30));
	}

	
	@Test
	public void pi() throws Exception {
		List list;
		
		// 规范： 凡是  java.lang下面的类 都不需要导入  java.lang使用的频率很高 。所以不需要导入
		System.out.println(Math.PI);
		
	}
}
